package com.treasure.mall.biz.bo.module;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.bo.module
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/8/10 10:09 上午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Data
@NoArgsConstructor
public class HomeGoodsConfig {

    /**
     * 商品缩略图
     */
    private String thumbnail;

    private String afterThumbnail;
    /**
     * 商品价格
     */
    private String price;
    /**
     * 商品ID
     */
    private Long goodsId;

    private Long catId;

    /**
     * 商品名称
     */
    private String goodsName;

    public HomeGoodsConfig(String title, String url, Long goodsId) {
        this.price = title;
        this.thumbnail = url;
        this.goodsId = goodsId;
    }

    public HomeGoodsConfig(Long cid, String url, String after) {
        this.thumbnail = url;
        this.afterThumbnail = after;
        this.catId = cid;
    }


}
